Skip to contentSkip to conversation

ttf fonts are invisible

Bug 105262 [email protected] 1 participant 17 messages Feb 26, 2018 – Mar 5, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=105262

Bug ID: 105262
Summary: ttf fonts are invisible
Product: Mesa
Version: git
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 137622
--> https://bugs.freedesktop.org/attachment.cgi?id=137622&action=edit
gvim main window as an example

Video: Radeon 4650HD PRO
Xorg: 1.19.6
Kernel: 4.15.6

Non-TTF fonts are rendered fine. Also, Firefox and LibreOffice can render TTF in their work areas, but not in gtk interface.

Mesa 17.3.5 is unaffected.

Attached screenshot illustrates the bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #1 from Pavel Vinogradov <[email protected]> --- Created attachment 137623
--> https://bugs.freedesktop.org/attachment.cgi?id=137623&action=edit
Xorg.log

Xorg.log with today's build of mesa from git.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #137623|text/x-log                  |text/plain
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #2 from LoneVVolf <[email protected]> --- This looks very similar to my issue, see
https://bbs.archlinux.org/viewtopic.php?id=234852

The libreoffice screenshots shown at
https://ask.libreoffice.org/en/question/90910/writer-displays-no-text/ are almost exactly what i encounter.

Going back in the log of my package manager i have been able to narrow the cause down somewhat.

https://cgit.freedesktop.org/mesa/mesa/commit/?id=2f0db33527fc5415858e60d76d5b82c5492151fa
from 2018-01-31 works

https://cgit.freedesktop.org/mesa/mesa/commit/?id=3f7a7bd897ce4d7da50d4f25b1549001abef05cc
from 2018-02-08 fails

The cause should be somewhere between these two commits.

Pavel, could you check the libreoffice screenshots to verify we have the same issue ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #3 from Pavel Vinogradov <[email protected]> --- Created attachment 137675
--> https://bugs.freedesktop.org/attachment.cgi?id=137675&action=edit
LO Writer example

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #4 from Pavel Vinogradov <[email protected]> --- I got a bit different picture here. Added attachment above. Menus and tooltips aren't rendered. The text is fine.

(In reply to LoneVVolf from comment #2)

Quoted 20 lines

This looks very similar to my issue, see
https://bbs.archlinux.org/viewtopic.php?id=234852

The libreoffice screenshots shown at
https://ask.libreoffice.org/en/question/90910/writer-displays-no-text/ are almost exactly what i encounter.

Going back in the log of my package manager i have been able to narrow the cause down somewhat.

https://cgit.freedesktop.org/mesa/mesa/commit/
?id=2f0db33527fc5415858e60d76d5b82c5492151fa from 2018-01-31 works

https://cgit.freedesktop.org/mesa/mesa/commit/
?id=3f7a7bd897ce4d7da50d4f25b1549001abef05cc from 2018-02-08 fails

The cause should be somewhere between these two commits.

Pavel, could you check the libreoffice screenshots to verify we have the same issue ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

LoneVVolf <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Hardware|Other |x86-64 (AMD64)

--- Comment #5 from LoneVVolf <[email protected]> ---
Installed gvim to verify, and that has no menus AND shows no text. It looks like both of us have the same issue, but i have an additonal one: no text at all in affected programs.

I'm running archlinux x86_64 with xf86-video-ati on an AMD HD 4870. xorg 1.19.6, kernel 4.15.5

programs without text in menus on my system :
openbox, lxde, gvim, libreoffice, firefox gtk-filechooser, thunderbird gtk-filechooser

No issues at all in qt programs like lxqt, kwin, gwenview , okular, calligra .

Could you verify whether qt programs have issues ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #6 from LoneVVolf <[email protected]> ---
It appears most recent commits wrt r600 were written by Dave Airlie. Added him to CC list

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #7 from LoneVVolf <[email protected]> ---
I started bisecting this. Had to move head several times due to build failures and runtime problems, but managed to find some more good commits.

$ git bisect log
git bisect start
# good: [aa2f609f7009199999f824970f9c13f016994364] broadcom/vc5: Ignore
samplers for finding uniform offsets.
git bisect good aa2f609f7009199999f824970f9c13f016994364
# bad: [3f7a7bd897ce4d7da50d4f25b1549001abef05cc] r600: implement tg4 integer
workaround. (v2)
git bisect bad 3f7a7bd897ce4d7da50d4f25b1549001abef05cc
# good: [4081e088962315b5c3f4e7030868faf01e7c4a69] winsys/amdgpu: allow non
page-aligned size bo creation from pointer
git bisect good 4081e088962315b5c3f4e7030868faf01e7c4a69
$
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #8 from Pavel Vinogradov <[email protected]> --- Sorry, no qt stuff here, but I have rxvt-unicode with the same problem. So, it's not gtk specific.

(In reply to LoneVVolf from comment #5)

Quoted 15 lines

Installed gvim to verify, and that has no menus AND shows no text. It looks like both of us have the same issue, but i have an additonal one:
no text at all in affected programs.

I'm running archlinux x86_64 with xf86-video-ati on an AMD HD 4870. xorg 1.19.6, kernel 4.15.5

programs without text in menus on my system :
openbox, lxde, gvim, libreoffice, firefox gtk-filechooser, thunderbird gtk-filechooser

No issues at all in qt programs like lxqt, kwin, gwenview , okular, calligra .

Could you verify whether qt programs have issues ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

LoneVVolf <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|ttf fonts are invisible     |[R600] [BISECTED] ttf fonts
                   |                            |are invisible in many
                   |                            |programs
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #9 from LoneVVolf <[email protected]> ---

# first bad commit: [5b14e06d8b42e2b08ebc52b6c314ef8647d87a1f] r600: work out
shader export mask at shader build time (v1.1)

mesa-git from this commit on doesn't render TTF fonts anymore in openbox, gvim, libreoffice, rxvt-unicode and firefox / thunderbird gtk-interfaces . qt programs don't appear to be affected.

Affected videocards :
Radeon 4650HD Pro
Radeon HD 4870 with AMD RV770 chipset

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #10 from LoneVVolf <[email protected]> ---
The first bad commit was submitted by Dave Airlie and reviewed by Roland Scheidegger

Added Roland Scheidegger to CC List.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #11 from Roland Scheidegger <[email protected]> --- Created attachment 137762
--> https://bugs.freedesktop.org/attachment.cgi?id=137762&action=edit
copy over export color mask

Would this patch help?
I think the r600 code forgot to copy over the export mask (at least the eg code does it).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #12 from LoneVVolf <[email protected]> ---
Patch applied to trunk rev 411aa8c322f6703b20d32c7c263fd7ea8639cf3f cleanly and appears to solve all problems.

Pavel, can you or other sourcemage users with r600 cards also test ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

--- Comment #13 from Pavel Vinogradov <[email protected]> --- Confirmed, the patch works. Thank you all for quick solution.

(In reply to LoneVVolf from comment #12)

Quoted 4 lines

Patch applied to trunk rev 411aa8c322f6703b20d32c7c263fd7ea8639cf3f cleanly and appears to solve all problems.

Pavel, can you or other sourcemage users with r600 cards also test ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw

[Bug 105262] [R600] [BISECTED] ttf fonts are invisible in many programs

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=105262

Roland Scheidegger <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #14 from Roland Scheidegger <[email protected]> --- Fixed by 434523cf2a6738b0250de2a0e36e93b13f88832a. Thanks for bisecting!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel